home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 60.zip
/
BS1 part 60
/
DBman d2.adf
/
SENDDBF.PRG
< prev
Wrap
Text File
|
1990-08-06
|
1KB
|
61 lines
set procedure to
set procedure to senddbf
set talk off
erase
text
This is a program to copy a database file to an extended format
It will also copy the structure of the database too.
The main purpose for the is for the people converting from an older
version of dBMAN (2 or 3) and don't have the CNVV3 program.
The first step to converting is done here. After this, go to version V
and execute the program called, "RECDBF.PRG". After this you must recreate
your index files with the INDEX [<Fi>] ON <filedlist> TO <fileNDX> command.
endtext
wait 'Press any key to continue...'
dbm_filen = space(64)
do selfl
if trim(dbm_filen) <> ''
erase
**convert the database
select fk
use &dbm_filen
delete file xxx.dbf
copy structure extended to xxx
select fj
use xxx
? 'Copying the database structure...'
copy delimited to dbfstru
close
select fk
? 'Copying the records...'
copy delimited to recinfo
beep
? 'Done! Now the database can be reveived by version V with the RECDBF.PRG'
wait 'press any key...'
endif
return
**************
procedure selfl
**************
erase
? ' Here are a list of dbf files in the current directory...'
?
list file
wait 'press any key...'
@ 23,0 say 'File name to convert:' get dbm_filen
read
dbm_filen = trim(dbm_filen)
if not file('&dbm_filen')
dbm_filen = ''
endif
return